package com.xueshishasha.oa.service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.xueshishasha.oa.model.File;

public interface FileService {

	public File getInfo(String id);

	public void updateInfo(File file);

	public Serializable save(File file);

	public void delete(File file);

	public List<File> getAll();

	public File getModelById(Serializable id);

	public List<File> getModels(String hql, Object[] parameters);

	public void saveOrUpdate(File file);

	public void saveOrUpdateAll(Collection<File> collection);

	public void update(File file);

	public List<File> getByCriteria(DetachedCriteria dc);

}
